import React from "react";
import ReactDOM from "react-dom";



import {HashRouter as Router,Route,NavLink,Switch} from 'react-router-dom';
import { Provider } from 'react-redux';
import store from './store';
// import reducers from '../reducers';
import {Community} from './components';


// import Home from './components/Home';

import {Home,Header,Footer,Login_register,Rectv,Recmovie,User,Login,Vip,Privilege,Welfare,Subscribe,RecDetail} from './components';
import Recother from './components/Recommend/Recother';
import {DianYingThree,YingPing,MyCollect} from './components';

ReactDOM.render(
    <Provider store={store}>
      <Router>
        <div>
        <Header/>
          <Switch>
          <Route path='/' component={Home} exact/>
          <Route path='/rectv' component={Rectv}/>
          <Route path='/recmovie' component={Recmovie}/>
          <Route path='/recother' component={Recother}/>
          <Route path='/recdetail' component={RecDetail}/>

          <Route path='/user' component={User}/>
          <Route path='/community' component={Community}/>
          <Route
              path="/login_register/:type"
              component={Login_register}
              exact
            />
          <Route path='/user/:id' component={User}/>
          <Route path='/vip' component={Vip}/>
            <Route path='/privilege' component={Privilege}/>
            <Route path='/welfare' component={Welfare}/>
            <Route path='/subscribe/:charges/:type/:year/:area/:subtype/:play' component={Subscribe}/>
            <Route path='/dianying3' component={DianYingThree} />
                <Route path='/yingping' component={YingPing} />
                <Route path='/mycollect' component={MyCollect} />
          </Switch>
          <Footer/>
        </div>
      </Router>
    </Provider>,
    document.getElementById('app')
  );


